-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix disaggregation #674
Fix disaggregation #674
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the default arguments but with 50 snapshots, the disaggregation shows an error:
"Sum of disaggregated time series does not match..." Do you know what could be the reason?
This es especially needed when all generators are PQ-controlled (e.g. load shedding) and there is no reactive power time series that needs to be distributed
This happens within the pf_post_lopf anyhow. But before, the change was only done for the aggregated and not the disaggregated network which resulted into problems when disaggregating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this branch and it ran OK. It was not tested when PF post LOPF is activated.
The problems when disaggregating load_shedding generators after the pf_post_lopf occur because the control strategies for generators are set multiple times, and sometimes different. |
The control parameters are overwitten within pypsa's network clustering, because slack generators are selected. In order to not keep this change, the function set_contro_strategies needs to be called again after every spatial clustering.
I fixed the problems, it now also works when the pf was executed. |
The original PR to disaggregate links and stores (#629) included some problems, e.g. 95c22f0 assumed that
etrago.clustering.busmap
is apandas.Series
, but it is a dictionary.In addition, some commits from https://github.com/openego/eTraGo/tree/features/disaggregate-links-and-stores-update-busmap were not part of the merged branch.
I fixed those problems in this branch.
This branch also solves #644